PREVIEW: Let's see an example of the program you'll be making today!

  • You've used a linear function to find points on a line in math class. Now, you'll use a loop and Python will do the math!
  • Run the program to see the loop make five points on the line y = x - 4.
  • Change the integer in range() from 5 to 10 so that the loop runs 10 times and makes 10 points.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)